<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:rich="http://richfaces.org/rich">
<ui:composition>
   <s:fileUpload 
            id="attachment"
            contentType="#{newIssueController.newIssueFormAttachmentContentType}" 
            data="#{newIssueController.newIssueFormAttachmentInputStream}" 
            fileName="#{newIssueController.newIssueFormAttachmentFileName}"
   />  

<h:panelGroup rendered="#{newIssueController.issue.attachment.valid}">
   <strong>Current file:</strong> 
   <a href="issue.download?id=#{newIssueController.issue.id}" 
      target="_blank">#{newIssueController.issue.attachment.fileName}</a>
   <br/>
   To keep the file as is, leave this field blank. 
</h:panelGroup>
</ui:composition>
</html><!-- clickframes::version=1287177204::clickframes -->